import allure
import pytest
from selenium import webdriver

from autoTest_prtcApi.utils.mysql_utils import mysql_db


@pytest.fixture(scope='session',autouse=True)
def fixture():
    # 环境预置
    print("开始执行接口自动化测试用例")
    yield
    print("用例执行完成恢复环境")
    #执行sql
    # 连接mysql数据库
    sql = "delete from UserName where u_phone = '18070232221';"
    mysql_db.execute_data(sql)


